﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace CMS.APP
{
    public class Vote
    {
        #region Fields
        /// <summary>
        /// 投票Id
        /// </summary>
        private decimal id;
        /// <summary>
        /// 投票Id
        /// </summary>
        public decimal Id
        {
            get { return id; }
            //set { id = value; }
        }
        /// <summary>
        /// 投票标题
        /// </summary>
        private string title;
        /// <summary>
        /// 投票标题
        /// </summary>
        public string Title
        {
            get { return title; }
            //set { title = value; }
        }
        /// <summary>
        /// 投票描述
        /// </summary>
        private string description;
        /// <summary>
        /// 投票描述
        /// </summary>
        public string Description
        {
            get { return description; }
            //set { description = value; }
        }
        /// <summary>
        /// 最多选项个数
        /// </summary>
        private int maxSelect;
        /// <summary>
        /// 最多选项个数
        /// </summary>
        public int MaxSelect
        {
            get { return maxSelect; }
            //set { maxSelect = value; }
        }
        /// <summary>
        /// 截止时间
        /// </summary>
        private DateTime deadline;
        /// <summary>
        /// 截止时间
        /// </summary>
        public DateTime Deadline
        {
            get { return deadline; }
            set { deadline = value; }
        }
        /// <summary>
        /// 结果总和
        /// </summary>
        private decimal allResult;
        /// <summary>
        /// 结果总和
        /// </summary>
        public decimal AllResult
        {
            get { return allResult; }
            //set { allResult = value; }
        }
        /// <summary>
        /// 最后投票时间
        /// </summary>
        private DateTime lastUpdateTime;
        /// <summary>
        /// 最后投票时间
        /// </summary>
        public DateTime LastUpdateTime
        {
            get { return lastUpdateTime; }
            //set { lastUpdateTime = value; }
        } 
        /// <summary>
        /// 选项
        /// </summary>
        private List<VoteOption> voteOption;
        /// <summary>
        /// 选项
        /// </summary>
        public List<VoteOption> VoteOption
        {
            get { return voteOption; }
            //set { voteOption = value; }
        }
        #endregion Fields

        /// <summary>
        /// 更新
        /// </summary>
        public int Update()
        {
            throw new System.NotImplementedException();
        }
        /// <summary>
        /// 获得一个投票
        /// </summary>
        public static Vote GetVotebyId()
        {
            throw new System.NotImplementedException();
        }

        
    }
}
